package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.entity.ColumnTag;
import java.util.List;
import java.util.Set;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 标签 Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface ColumnTagMapper extends BaseDao<ColumnTag> {

    void setColumnTagStatus(@Param("id") Integer id, @Param("isUse") Integer isUse);

    List<ColumnTag> queryAllTagListByParm(@Param("columnType") Integer columnType,
            @Param("isUse") Integer isUse, @Param("sortString") String sortString);

    void deleteColumnTagById(@Param("id") Integer id);

    List<ColumnTag> selectByName(@Param("tagName") String tagName, @Param("isUse") Integer isUse,
            @Param("status") Integer status);

    ColumnTag selectByTagId(@Param("tagId") Integer tagId, @Param("status") Integer status);

    List<ColumnTag> queryByParamList(@Param("isUse") Integer isUse, @Param("isdel") Integer isdel);

    void deleteColumnTagByIds(@Param("set") Set<Integer> set);

    List<ColumnTag> queryAllTag(@Param("isUse") Integer isUse, @Param("isdel") Integer isdel);

}